/**
 * @file 报表展示mock数据
 * @author caierwei(caierwei@baijia.com)
 * @date 2020-01-14
 */

const { mock } = require('mockjs');

// 节点
const point = {
  'xAxis|+1': ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
  'value|+1': 1 + 10
}

// 数据map
const dataMap = {
  'name|+1': ['折线1', '折线2', '折线3', '折线4', '折线5', '折线6', '折线7'],
  'point|7': [point]
}

const result = {
    "code":0,
    "data":{
        "transformationThisMonthTitle":{
            "dashboardName":null,
            "dashboardId":null,
            "timeStr":{
                "unitId":"transformationThisMonthTitle1_text",
                "unitName":"日期更新时间",
                "textContent":"数据更新至:2021-01-17"
            },
            "desc":{
                "unitId":"transformationThisMonthTitle2_text",
                "unitName":"请联系",
                "textContent":"每日8点更新昨日数据，相关问题请联系经营分析----【孟宸】"
            },
            "cardList":[
                {
                    "unitId":"transformationThisMonthTitle3_card",
                    "unitName":"流量完成率",
                    "cardValues":[
                        {
                            "name":"",
                            "value":"210.34%"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthTitle2_card",
                    "unitName":"本月累计流量",
                    "cardValues":[
                        {
                            "name":"",
                            "value":"6060681"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthTitle1_card",
                    "unitName":"本月ROI",
                    "cardValues":[
                        {
                            "name":"",
                            "value":"1.66"
                        }
                    ]
                }
            ]
        },
        "transformationThisMonthGeneralView":{
            "dashboardName":null,
            "dashboardId":null,
            "text":{
                "unitId":"transformationThisMonthGeneralView1_text",
                "unitName":"第二部分text",
                "textContent":""
            },
            "picture":{
                "unitId":"transformationThisMonthGeneralView1_picture",
                "unitName":"第二部分图片",
                "pictureUrl":"https://p.gsxcdn.com/959414267_7xtt5nmb.png"
            }
        },
        "transformationThisMonthConversionEfficiency":{
            "dashboardName":null,
            "dashboardId":null,
            "cardList":[
                {
                    "unitId":"transformationThisMonthConversionEfficiency4_card",
                    "unitName":"ROI",
                    "cardValues":[
                        {
                            "name":"ROI",
                            "value":"1.67"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthConversionEfficiency7_card",
                    "unitName":"高中",
                    "cardValues":[
                        {
                            "name":"订单成本",
                            "value":"86"
                        },
                        {
                            "name":"转化率",
                            "value":"2.24%"
                        },
                        {
                            "name":"订单量",
                            "value":"2360704"
                        },
                        {
                            "name":"ROI",
                            "value":"0.77"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthConversionEfficiency5_card",
                    "unitName":"小学系统班",
                    "cardValues":[
                        {
                            "name":"订单成本",
                            "value":"211"
                        },
                        {
                            "name":"转化率",
                            "value":"3.86%"
                        },
                        {
                            "name":"订单量",
                            "value":"1110241"
                        },
                        {
                            "name":"ROI",
                            "value":"0.37"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthConversionEfficiency6_card",
                    "unitName":"初中",
                    "cardValues":[
                        {
                            "name":"订单成本",
                            "value":"130"
                        },
                        {
                            "name":"转化率",
                            "value":"2.96%"
                        },
                        {
                            "name":"订单量",
                            "value":"3230664"
                        },
                        {
                            "name":"ROI",
                            "value":"0.54"
                        }
                    ]
                }
            ],
            "lineUnit":{
                "unitId":"transformationThisMonthConversionEfficiency_composite_1",
                "unitName":"分渠道转化效率",
                "config":{
                    "dimensionList":[
                        {
                            "dimensionId":"first_classify_name",
                            "dimensionName":"first_classify_name",
                            "dimensionCname":"渠道一级分类"
                        }
                    ],
                    "measureList":[

                    ],
                    "compositeMeasureList":[
                        {
                            "compositeMeasureId":"transformationThisMonthConversionEfficiency_conversion_rate",
                            "compositeMeasureName":"conversion_rate",
                            "compositeMeasureCname":"转化率"
                        },
                        {
                            "compositeMeasureId":"transformationThisMonthConversionEfficiency_efficiency_ROI",
                            "compositeMeasureName":"ROI",
                            "compositeMeasureCname":"ROI"
                        },
                        {
                            "compositeMeasureId":"transformationThisMonthConversionEfficiency_order_cost",
                            "compositeMeasureName":"order_cost",
                            "compositeMeasureCname":"订单成本"
                        }
                    ],
                    "drilling":1
                },
                "chart":{
                    "legend":{
                        "data":[
                            "转化率",
                            "订单成本"
                        ]
                    },
                    "xAxis":[
                        {
                            "type":"category",
                            "data":[
                                "信息流",
                                "淘金",
                                "公众号",
                                "商务渠道",
                                "内部渠道"
                            ]
                        }
                    ],
                    "yAxis":[
                        {
                            "type":"value",
                            "name":"转化率"
                        },
                        {
                            "type":"value",
                            "name":"订单成本"
                        }
                    ],
                    "series":[
                        {
                            "name":"转化率",
                            "type":"line",
                            "data":[
                                {
                                    "name":"信息流",
                                    "value":"0.036",
                                    "ROI":"0.2448"
                                },
                                {
                                    "name":"淘金",
                                    "value":"0.0308",
                                    "ROI":"0.0"
                                },
                                {
                                    "name":"公众号",
                                    "value":"0.0207",
                                    "ROI":"0.6813"
                                },
                                {
                                    "name":"商务渠道",
                                    "value":"0.0201",
                                    "ROI":"4.9742"
                                },
                                {
                                    "name":"内部渠道",
                                    "value":"0.0074",
                                    "ROI":"0.0"
                                }
                            ]
                        },
                        {
                            "name":"订单成本",
                            "type":"bar",
                            "data":[
                                {
                                    "name":"信息流",
                                    "value":"378.4039"
                                },
                                {
                                    "name":"淘金",
                                    "value":"0.0"
                                },
                                {
                                    "name":"公众号",
                                    "value":"78.6242"
                                },
                                {
                                    "name":"商务渠道",
                                    "value":"9.7641"
                                },
                                {
                                    "name":"内部渠道",
                                    "value":"0.0"
                                }
                            ]
                        }
                    ]
                }
            },
            "pieUnit":{
                "unitId":"transformationThisMonthConversionEfficiency_pie_1",
                "unitName":"分渠道单量占比",
                "config":{
                    "dimensionList":[
                        {
                            "dimensionId":"second_classify_name",
                            "dimensionName":"second_classify_name",
                            "dimensionCname":"渠道二级分类"
                        }
                    ],
                    "measureList":[
                        {
                            "measureId":"transformationThisMonthConversionEfficiency_number_orders",
                            "measureName":"number_orders",
                            "isValue":null,
                            "measureCname":"订单量"
                        }
                    ],
                    "compositeMeasureList":[

                    ],
                    "drilling":0
                },
                "chart":{
                    "legend":{
                        "data":[
                            "百度搜索",
                            "360搜索",
                            "360信息流",
                            "快手",
                            "UC",
                            "快接单",
                            "神马搜索",
                            "广点通",
                            "今日头条",
                            "爱奇艺",
                            "非标投放",
                            "微博粉丝通",
                            "百度Feeds流",
                            "微信朋友圈",
                            "搜狗搜索"
                        ]
                    },
                    "xAxis":[

                    ],
                    "yAxis":[

                    ],
                    "series":[
                        {
                            "name":null,
                            "type":"pie",
                            "data":[
                                {
                                    "proportion":"0.0058",
                                    "name":"百度搜索",
                                    "value":"2956"
                                },
                                {
                                    "proportion":"0.0007",
                                    "name":"360搜索",
                                    "value":"338"
                                },
                                {
                                    "proportion":"0.0000",
                                    "name":"360信息流",
                                    "value":"2"
                                },
                                {
                                    "proportion":"0.1178",
                                    "name":"快手",
                                    "value":"59778"
                                },
                                {
                                    "proportion":"0.0065",
                                    "name":"UC",
                                    "value":"3317"
                                },
                                {
                                    "proportion":"0.0008",
                                    "name":"快接单",
                                    "value":"383"
                                },
                                {
                                    "proportion":"0.0002",
                                    "name":"神马搜索",
                                    "value":"83"
                                },
                                {
                                    "proportion":"0.3272",
                                    "name":"广点通",
                                    "value":"166033"
                                },
                                {
                                    "proportion":"0.4774",
                                    "name":"今日头条",
                                    "value":"242302"
                                },
                                {
                                    "proportion":"0.0000",
                                    "name":"爱奇艺",
                                    "value":"7"
                                },
                                {
                                    "proportion":"0.0000",
                                    "name":"非标投放",
                                    "value":"1"
                                },
                                {
                                    "proportion":"0.0020",
                                    "name":"微博粉丝通",
                                    "value":"1005"
                                },
                                {
                                    "proportion":"0.0387",
                                    "name":"百度Feeds流",
                                    "value":"19628"
                                },
                                {
                                    "proportion":"0.0220",
                                    "name":"微信朋友圈",
                                    "value":"11178"
                                },
                                {
                                    "proportion":"0.0010",
                                    "name":"搜狗搜索",
                                    "value":"487"
                                }
                            ]
                        }
                    ]
                }
            },
            "efficiencyText":null
        },
        "transformationThisMonthFlowQuality":{
            "dashboardName":null,
            "dashboardId":null,
            "cardList":[
                {
                    "unitId":"transformationThisMonthFlowQuality9_card",
                    "unitName":"首课到课率",
                    "cardValues":[
                        {
                            "name":"首节到课率",
                            "value":"1.1547"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthFlowQuality10_card",
                    "unitName":"首课有效到课率",
                    "cardValues":[
                        {
                            "name":"首节有效到课率",
                            "value":"0.5807"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthFlowQuality8_card",
                    "unitName":"加好友率",
                    "cardValues":[
                        {
                            "name":"加好友率",
                            "value":"1.8129"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthFlowQuality11_card",
                    "unitName":"转化率",
                    "cardValues":[
                        {
                            "name":"流量质量部分的转化率",
                            "value":"0.0906"
                        }
                    ]
                }
            ],
            "lineUnit":{
                "unitId":"transformationThisMonthFlowQuality_composite_1",
                "unitName":"学员地域分布",
                "config":{
                    "dimensionList":[
                        {
                            "dimensionId":"transformationThisMonthFlowQuality_city_level",
                            "dimensionName":"city_level",
                            "dimensionCname":"城市等级"
                        }
                    ],
                    "measureList":[
                        {
                            "measureId":"transformationThisMonthConversionEfficiency_number_orders",
                            "measureName":"number_orders",
                            "isValue":null,
                            "measureCname":"订单量"
                        }
                    ],
                    "compositeMeasureList":[
                        {
                            "compositeMeasureId":"transformationThisMonthConversionEfficiency_conversion_rate",
                            "compositeMeasureName":"conversion_rate",
                            "compositeMeasureCname":"转化率"
                        }
                    ],
                    "drilling":0
                },
                "chart":{
                    "legend":{
                        "data":[
                            "转化率",
                            "订单量"
                        ]
                    },
                    "xAxis":[
                        {
                            "type":"category",
                            "data":[
                                "五线城市",
                                "无",
                                "新一线城市",
                                "三线城市",
                                "一线城市",
                                "四线城市",
                                "二线城市"
                            ]
                        }
                    ],
                    "yAxis":[
                        {
                            "type":"value",
                            "name":"转化率"
                        },
                        {
                            "type":"value",
                            "name":"订单量"
                        }
                    ],
                    "series":[
                        {
                            "name":"转化率",
                            "type":"line",
                            "data":[
                                {
                                    "name":"五线城市",
                                    "value":"0.0215"
                                },
                                {
                                    "name":"无",
                                    "value":"0.022"
                                },
                                {
                                    "name":"新一线城市",
                                    "value":"0.0281"
                                },
                                {
                                    "name":"三线城市",
                                    "value":"0.0222"
                                },
                                {
                                    "name":"一线城市",
                                    "value":"0.0237"
                                },
                                {
                                    "name":"四线城市",
                                    "value":"0.0219"
                                },
                                {
                                    "name":"二线城市",
                                    "value":"0.0283"
                                }
                            ]
                        },
                        {
                            "name":"订单量",
                            "type":"bar",
                            "data":[
                                {
                                    "name":"五线城市",
                                    "value":"279738"
                                },
                                {
                                    "name":"无",
                                    "value":"32860"
                                },
                                {
                                    "name":"新一线城市",
                                    "value":"246494"
                                },
                                {
                                    "name":"三线城市",
                                    "value":"503670"
                                },
                                {
                                    "name":"一线城市",
                                    "value":"110960"
                                },
                                {
                                    "name":"四线城市",
                                    "value":"464135"
                                },
                                {
                                    "name":"二线城市",
                                    "value":"259140"
                                }
                            ]
                        }
                    ]
                }
            },
            "pieUnit": {
                "unitId": "transformationThisMonthFlowQuality_pie_1",
                "unitName": "新老学员分布及转化效率（不含淘金）",
                "config": {
                  "dimensionList": [
                    {
                      "dimensionId": "is_new",
                      "dimensionName": "is_new",
                      "dimensionCname": "新老用户"
                    }
                  ],
                  "measureList": [
                    {
                      "measureId": "transformationThisMonthConversionEfficiency_number_orders",
                      "measureName": "number_orders",
                      "isValue": null,
                      "measureCname": "订单量"
                    }
                  ],
                  "compositeMeasureList": [
                    {
                      "compositeMeasureId": "transformationThisMonthConversionEfficiency_conversion_rate",
                      "compositeMeasureName": "conversion_rate",
                      "compositeMeasureCname": "转化率"
                    },
                    {
                      "compositeMeasureId": "transformationThisMonthConversionEfficiency_efficiency_ROI",
                      "compositeMeasureName": "ROI",
                      "compositeMeasureCname": "ROI"
                    }
                  ],
                  "drilling": 1
                },
                "chart": {
                  "legend": {
                    "data": [
                      "新用户",
                      "老用户"
                    ]
                  },
                  "xAxis": [],
                  "yAxis": [],
                  "series": [
                    {
                      "name": null,
                      "type": "pie",
                      "data": [
                        {
                          "proportion": "0.9453",
                          "name": "新用户",
                          "value": "1624422"
                        },
                        {
                          "proportion": "0.0547",
                          "name": "老用户",
                          "value": "93992"
                        }
                      ]
                    }
                  ]
                }
            },
            "efficiencyText":{
                "unitId":"transformationThisMonthFlowQuality1_text",
                "unitName":"第四部分text",
                "textContent":""
            }
        }
    },
    "msg":"success",
    "pager":null
};

const result2 = {
    "code":0,
    "data":{
        "transformationThisMonthTitle":{
            "dashboardName":null,
            "dashboardId":null,
            "timeStr":{
                "unitId":"transformationThisMonthTitle1_text",
                "unitName":"日期更新时间",
                "textContent":"数据更新至:2021-01-17"
            },
            "desc":{
                "unitId":"transformationThisMonthTitle2_text",
                "unitName":"请联系",
                "textContent":"每日8点更新昨日数据，相关问题请联系经营分析----【孟宸】"
            },
            "cardList":[
                {
                    "unitId":"transformationThisMonthTitle3_card",
                    "unitName":"流量完成率",
                    "cardValues":[
                        {
                            "name":"",
                            "value":"210.34%"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthTitle2_card",
                    "unitName":"本月累计流量",
                    "cardValues":[
                        {
                            "name":"",
                            "value":"6060681"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthTitle1_card",
                    "unitName":"本月ROI",
                    "cardValues":[
                        {
                            "name":"",
                            "value":"1.66"
                        }
                    ]
                }
            ]
        },
        "transformationThisMonthGeneralView":{
            "dashboardName":null,
            "dashboardId":null,
            "text":{
                "unitId":"transformationThisMonthGeneralView1_text",
                "unitName":"第二部分text",
                "textContent":""
            },
            "picture":{
                "unitId":"transformationThisMonthGeneralView1_picture",
                "unitName":"第二部分图片",
                "pictureUrl":"https://p.gsxcdn.com/959414267_7xtt5nmb.png"
            }
        },
        "transformationThisMonthConversionEfficiency":{
            "dashboardName":null,
            "dashboardId":null,
            "cardList":[
                {
                    "unitId":"transformationThisMonthConversionEfficiency4_card",
                    "unitName":"ROI",
                    "cardValues":[
                        {
                            "name":"ROI",
                            "value":"1.67"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthConversionEfficiency7_card",
                    "unitName":"高中",
                    "cardValues":[
                        {
                            "name":"订单成本",
                            "value":"86"
                        },
                        {
                            "name":"转化率",
                            "value":"2.24%"
                        },
                        {
                            "name":"订单量",
                            "value":"2360704"
                        },
                        {
                            "name":"ROI",
                            "value":"0.77"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthConversionEfficiency5_card",
                    "unitName":"小学系统班",
                    "cardValues":[
                        {
                            "name":"订单成本",
                            "value":"211"
                        },
                        {
                            "name":"转化率",
                            "value":"3.86%"
                        },
                        {
                            "name":"订单量",
                            "value":"1110241"
                        },
                        {
                            "name":"ROI",
                            "value":"0.37"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthConversionEfficiency6_card",
                    "unitName":"初中",
                    "cardValues":[
                        {
                            "name":"订单成本",
                            "value":"130"
                        },
                        {
                            "name":"转化率",
                            "value":"2.96%"
                        },
                        {
                            "name":"订单量",
                            "value":"3230664"
                        },
                        {
                            "name":"ROI",
                            "value":"0.54"
                        }
                    ]
                }
            ],
            "lineUnit":{
                "unitId":"transformationThisMonthConversionEfficiency_composite_1",
                "unitName":"分渠道转化效率",
                "config":{
                    "dimensionList":[
                        {
                            "dimensionId":"second_classify_name",
                            "dimensionName":"second_classify_name",
                            "dimensionCname":"渠道二级分类"
                        }
                    ],
                    "measureList":[

                    ],
                    "compositeMeasureList":[
                        {
                            "compositeMeasureId":"transformationThisMonthConversionEfficiency_conversion_rate",
                            "compositeMeasureName":"conversion_rate",
                            "compositeMeasureCname":"转化率"
                        },
                        {
                            "compositeMeasureId":"transformationThisMonthConversionEfficiency_efficiency_ROI",
                            "compositeMeasureName":"ROI",
                            "compositeMeasureCname":"ROI"
                        },
                        {
                            "compositeMeasureId":"transformationThisMonthConversionEfficiency_order_cost",
                            "compositeMeasureName":"order_cost",
                            "compositeMeasureCname":"订单成本"
                        }
                    ],
                    "drilling":0
                },
                "chart":{
                    "legend":{
                        "data":[
                            "转化率",
                            "订单成本"
                        ]
                    },
                    "xAxis":[
                        {
                            "type":"category",
                            "data":[
                                "百度搜索",
                                "360搜索",
                                "360信息流",
                                "快手",
                                "UC",
                                "快接单",
                                "神马搜索",
                                "广点通",
                                "今日头条",
                                "爱奇艺",
                                "非标投放",
                                "微博粉丝通",
                                "百度Feeds流",
                                "微信朋友圈",
                                "搜狗搜索"
                            ]
                        }
                    ],
                    "yAxis":[
                        {
                            "type":"value",
                            "name":"订单成本"
                        },
                        {
                            "type":"value",
                            "name":"转化率"
                        }
                    ],
                    "series":[
                        {
                            "name":"转化率",
                            "type":"line",
                            // "data": []
                            "data":[
                                {
                                    "name":"百度搜索",
                                    "value":"0.0491",
                                    "ROI":"0.484"
                                },
                                {
                                    "name":"360搜索",
                                    "value":"0.0444",
                                    "ROI":"19539.51"
                                },
                                {
                                    "name":"360信息流",
                                    "value":"0.0",
                                    "ROI":"0.0"
                                },
                                {
                                    "name":"快手",
                                    "value":"0.0324",
                                    "ROI":"0.2126"
                                },
                                {
                                    "name":"UC",
                                    "value":"0.0612",
                                    "ROI":"0.4582"
                                },
                                {
                                    "name":"快接单",
                                    "value":"0.0104",
                                    "ROI":"0.0"
                                },
                                {
                                    "name":"神马搜索",
                                    "value":"0.0723",
                                    "ROI":"8939.0"
                                },
                                {
                                    "name":"广点通",
                                    "value":"0.0318",
                                    "ROI":"0.2613"
                                },
                                {
                                    "name":"今日头条",
                                    "value":"0.0379",
                                    "ROI":"0.2265"
                                },
                                {
                                    "name":"爱奇艺",
                                    "value":"0.1429",
                                    "ROI":"2.238"
                                },
                                {
                                    "name":"非标投放",
                                    "value":"0.0",
                                    "ROI":"0.0"
                                },
                                {
                                    "name":"微博粉丝通",
                                    "value":"0.0289",
                                    "ROI":"0.1"
                                },
                                {
                                    "name":"百度Feeds流",
                                    "value":"0.0578",
                                    "ROI":"0.4435"
                                },
                                {
                                    "name":"微信朋友圈",
                                    "value":"0.0276",
                                    "ROI":"0.2397"
                                },
                                {
                                    "name":"搜狗搜索",
                                    "value":"0.037",
                                    "ROI":"13160.9975"
                                }
                            ]
                        },
                        {
                            "name":"订单成本",
                            "type":"bar",
                            "data": []
                            // "data":[
                            //     {
                            //         "name":"百度搜索",
                            //         "value":"254.6377"
                            //     },
                            //     {
                            //         "name":"360搜索",
                            //         "value":"0.0059"
                            //     },
                            //     {
                            //         "name":"360信息流",
                            //         "value":"0.0"
                            //     },
                            //     {
                            //         "name":"快手",
                            //         "value":"369.4785"
                            //     },
                            //     {
                            //         "name":"UC",
                            //         "value":"328.5728"
                            //     },
                            //     {
                            //         "name":"快接单",
                            //         "value":"0.0"
                            //     },
                            //     {
                            //         "name":"神马搜索",
                            //         "value":"0.0241"
                            //     },
                            //     {
                            //         "name":"广点通",
                            //         "value":"333.1642"
                            //     },
                            //     {
                            //         "name":"今日头条",
                            //         "value":"423.9956"
                            //     },
                            //     {
                            //         "name":"爱奇艺",
                            //         "value":"100.8571"
                            //     },
                            //     {
                            //         "name":"非标投放",
                            //         "value":"0.0"
                            //     },
                            //     {
                            //         "name":"微博粉丝通",
                            //         "value":"530.2418"
                            //     },
                            //     {
                            //         "name":"百度Feeds流",
                            //         "value":"314.7882"
                            //     },
                            //     {
                            //         "name":"微信朋友圈",
                            //         "value":"299.377"
                            //     },
                            //     {
                            //         "name":"搜狗搜索",
                            //         "value":"0.0082"
                            //     }
                            // ]
                        }
                    ]
                }
            },
            "pieUnit":{
                "unitId":"transformationThisMonthConversionEfficiency_pie_1",
                "unitName":"分渠道单量占比",
                "config":{
                    "dimensionList":[
                        {
                            "dimensionId":"first_classify_name",
                            "dimensionName":"first_classify_name",
                            "dimensionCname":"渠道一级分类"
                        }
                    ],
                    "measureList":[
                        {
                            "measureId":"transformationThisMonthConversionEfficiency_number_orders",
                            "measureName":"number_orders",
                            "isValue":null,
                            "measureCname":"订单量"
                        }
                    ],
                    "compositeMeasureList":[

                    ],
                    "drilling":1
                },
                "chart":{
                    "legend":{
                        "data":[
                            "信息流",
                            "淘金",
                            "公众号",
                            "商务渠道",
                            "内部渠道"
                        ]
                    },
                    "xAxis":[

                    ],
                    "yAxis":[

                    ],
                    "series":[
                        {
                            "name":null,
                            "type":"pie",
                            "data":[
                                {
                                    "proportion":"0.2667",
                                    "name":"信息流",
                                    "value":"507498"
                                },
                                {
                                    "proportion":"0.0969",
                                    "name":"淘金",
                                    "value":"184467"
                                },
                                {
                                    "proportion":"0.0671",
                                    "name":"公众号",
                                    "value":"127754"
                                },
                                {
                                    "proportion":"0.4309",
                                    "name":"商务渠道",
                                    "value":"819939"
                                },
                                {
                                    "proportion":"0.1384",
                                    "name":"内部渠道",
                                    "value":"263376"
                                }
                            ]
                        }
                    ]
                }
            },
            "efficiencyText":null
        },
        "transformationThisMonthFlowQuality":{
            "dashboardName":null,
            "dashboardId":null,
            "cardList":[
                {
                    "unitId":"transformationThisMonthFlowQuality9_card",
                    "unitName":"首课到课率",
                    "cardValues":[
                        {
                            "name":"首节到课率",
                            "value":"1.1547"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthFlowQuality10_card",
                    "unitName":"首课有效到课率",
                    "cardValues":[
                        {
                            "name":"首节有效到课率",
                            "value":"0.5807"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthFlowQuality8_card",
                    "unitName":"加好友率",
                    "cardValues":[
                        {
                            "name":"加好友率",
                            "value":"1.8129"
                        }
                    ]
                },
                {
                    "unitId":"transformationThisMonthFlowQuality11_card",
                    "unitName":"转化率",
                    "cardValues":[
                        {
                            "name":"流量质量部分的转化率",
                            "value":"0.0906"
                        }
                    ]
                }
            ],
            "lineUnit":{
                "unitId":"transformationThisMonthFlowQuality_composite_1",
                "unitName":"学员地域分布",
                "config":{
                    "dimensionList":[
                        {
                            "dimensionId":"transformationThisMonthFlowQuality_city_level",
                            "dimensionName":"city_level",
                            "dimensionCname":"城市等级"
                        }
                    ],
                    "measureList":[
                        {
                            "measureId":"transformationThisMonthConversionEfficiency_number_orders",
                            "measureName":"number_orders",
                            "isValue":null,
                            "measureCname":"订单量"
                        }
                    ],
                    "compositeMeasureList":[
                        {
                            "compositeMeasureId":"transformationThisMonthConversionEfficiency_conversion_rate",
                            "compositeMeasureName":"conversion_rate",
                            "compositeMeasureCname":"转化率"
                        }
                    ],
                    "drilling":0
                },
                "chart":{
                    "legend":{
                        "data":[
                            "转化率",
                            "订单量"
                        ]
                    },
                    "xAxis":[
                        {
                            "type":"category",
                            "data":[
                                "五线城市",
                                "无",
                                "新一线城市",
                                "三线城市",
                                "一线城市",
                                "四线城市",
                                "二线城市"
                            ]
                        }
                    ],
                    "yAxis":[
                        {
                            "type":"value",
                            "name":"订单量"
                        },
                        {
                            "type":"value",
                            "name":"转化率"
                        }
                    ],
                    "series":[
                        {
                            "name":"转化率",
                            "type":"line",
                            "data":[
                                {
                                    "name":"五线城市",
                                    "value":"0.0215"
                                },
                                {
                                    "name":"无",
                                    "value":"0.022"
                                },
                                {
                                    "name":"新一线城市",
                                    "value":"0.0281"
                                },
                                {
                                    "name":"三线城市",
                                    "value":"0.0222"
                                },
                                {
                                    "name":"一线城市",
                                    "value":"0.0237"
                                },
                                {
                                    "name":"四线城市",
                                    "value":"0.0219"
                                },
                                {
                                    "name":"二线城市",
                                    "value":"0.0283"
                                }
                            ]
                        },
                        {
                            "name":"订单量",
                            "type":"bar",
                            "data":[
                                // {
                                //     "name":"五线城市",
                                //     "value":"279738"
                                // },
                                // {
                                //     "name":"无",
                                //     "value":"32860"
                                // },
                                // {
                                //     "name":"新一线城市",
                                //     "value":"246494"
                                // },
                                // {
                                //     "name":"三线城市",
                                //     "value":"503670"
                                // },
                                // {
                                //     "name":"一线城市",
                                //     "value":"110960"
                                // },
                                // {
                                //     "name":"四线城市",
                                //     "value":"464135"
                                // },
                                // {
                                //     "name":"二线城市",
                                //     "value":"259140"
                                // }
                            ]
                        }
                    ]
                }
            },
            "pieUnit": {
                "unitId": "transformationThisMonthFlowQuality_pie_1",
                "unitName": "新老学员分布及转化效率（不含淘金）",
                "config": {
                  "dimensionList": [
                    {
                      "dimensionId": "is_new",
                      "dimensionName": "is_new",
                      "dimensionCname": "新老用户"
                    }
                  ],
                  "measureList": [
                    {
                      "measureId": "transformationThisMonthConversionEfficiency_number_orders",
                      "measureName": "number_orders",
                      "isValue": null,
                      "measureCname": "订单量"
                    }
                  ],
                  "compositeMeasureList": [
                    {
                      "compositeMeasureId": "transformationThisMonthConversionEfficiency_conversion_rate",
                      "compositeMeasureName": "conversion_rate",
                      "compositeMeasureCname": "转化率"
                    },
                    {
                      "compositeMeasureId": "transformationThisMonthConversionEfficiency_efficiency_ROI",
                      "compositeMeasureName": "ROI",
                      "compositeMeasureCname": "ROI"
                    }
                  ],
                  "drilling": 1
                },
                "chart": {
                  "legend": {
                    "data": [
                      "新用户",
                      "老用户"
                    ]
                  },
                  "xAxis": [],
                  "yAxis": [],
                  "series": [
                    {
                      "name": null,
                      "type": "pie",
                      "data": [
                        {
                            "proportion": "0.9453",
                            "name": "新用户",
                            "value": "1624422",
                            "conversion_rate": "0.0291",
                            "ROI": "0.5144"
                        },
                        {
                            "proportion": "0.0547",
                            "name": "老用户",
                            "value": "93992",
                            "conversion_rate": "0.0234",
                            "ROI": "0.3824"
                        }
                      ]
                    }
                  ]
                }
            },
            "efficiencyText":{
                "unitId":"transformationThisMonthFlowQuality1_text",
                "unitName":"第四部分text",
                "textContent":""
            }
        }
    },
    "msg":"success",
    "pager":null
};

module.exports = {
  'POST /api/transformation/values': mock({"code":0,"data":{"transformationThisMonthTitle":{"dashboardName":null,"dashboardId":null,"timeStr":{"unitId":"transformationThisMonthTitle1_text","unitName":"日期更新时间","textContent":"数据更新至:2021-01-20"},"desc":{"unitId":"transformationThisMonthTitle2_text","unitName":"请联系","textContent":"每日8点更新昨日数据，相关问题请联系经营分析----【孟宸】"},"cardList":[{"unitId":"transformationThisMonthTitle3_card","unitName":"流量完成率","cardValues":[{"name":"","value":"54.11%"}]},{"unitId":"transformationThisMonthTitle2_card","unitName":"本月累计流量","cardValues":[{"name":"","value":"1872074"}]},{"unitId":"transformationThisMonthTitle1_card","unitName":"本月ROI","cardValues":[{"name":"","value":"0.58"}]}]},"transformationThisMonthGeneralView":{"dashboardName":null,"dashboardId":null,"text":{"unitId":"transformationThisMonthGeneralView1_text","unitName":"第二部分text","textContent":"1. 【统计范围】本月短期班行课订单，去除赠课，暂不含小学专题课\n2. 【收入】去除退费\n3. 【累计流量】本月常规短期班中已结课及行课中所有流量，不含未开课\n4. 【流量完成率】本月常规短期班流量/目标流量，不含淘金，目标流量为306.2万\n5. 【期次/期名】常规短期班，不含测试项目\n（注意：不限制\"期次\"或\"期名\"时为全量）"},"picture":{"unitId":"transformationThisMonthGeneralView1_picture","unitName":"第二部分图片","pictureUrl":"https://p.gsxcdn.com/959414267_7xtt5nmb.png"}},"transformationThisMonthConversionEfficiency":{"dashboardName":null,"dashboardId":null,"cardList":[{"unitId":"transformationThisMonthConversionEfficiency4_card","unitName":"ROI","cardValues":[{"name":"ROI","value":"0.58"}]},{"unitId":"transformationThisMonthConversionEfficiency7_card","unitName":"高中","cardValues":[{"name":"订单成本","value":"81"},{"name":"转化率","value":"2.03%"},{"name":"订单量","value":"624455"},{"name":"ROI","value":"0.76"}]},{"unitId":"transformationThisMonthConversionEfficiency5_card","unitName":"小学系统班","cardValues":[{"name":"订单成本","value":"181"},{"name":"转化率","value":"3.31%"},{"name":"订单量","value":"475648"},{"name":"ROI","value":"0.33"}]},{"unitId":"transformationThisMonthConversionEfficiency6_card","unitName":"初中","cardValues":[{"name":"订单成本","value":"129"},{"name":"转化率","value":"3.51%"},{"name":"订单量","value":"802802"},{"name":"ROI","value":"0.69"}]}],"lineUnit":{"unitId":"transformationThisMonthConversionEfficiency_composite_1","unitName":"分渠道转化效率","config":{"dimensionList":[{"dimensionId":"first_classify_name","dimensionName":"first_classify_name","dimensionCname":"渠道一级分类"}],"measureList":[],"compositeMeasureList":[{"compositeMeasureId":"transformationThisMonthConversionEfficiency_order_cost","compositeMeasureName":"order_cost","compositeMeasureCname":"订单成本"},{"compositeMeasureId":"transformationThisMonthConversionEfficiency_conversion_rate","compositeMeasureName":"conversion_rate","compositeMeasureCname":"转化率"},{"compositeMeasureId":"transformationThisMonthConversionEfficiency_efficiency_ROI","compositeMeasureName":"ROI","compositeMeasureCname":"ROI"}],"drilling":1},"chart":{"legend":{"data":["订单成本","转化率"]},"xAxis":[{"type":"category","data":["信息流","淘金","公众号","商务渠道","内部渠道"]}],"yAxis":[{"type":"value","name":"订单成本"},{"type":"value","name":"转化率"}],"series":[{"name":"订单成本","type":"bar","data":[{"name":"信息流","value":"378.8959"},{"name":"淘金","value":"0.0"},{"name":"公众号","value":"0.0"},{"name":"商务渠道","value":"59.4657"},{"name":"内部渠道","value":"0.0"}]},{"name":"转化率","type":"line","data":[{"name":"信息流","value":"0.0472","ROI":"0.3143"},{"name":"淘金","value":"0.0372","ROI":"0.0"},{"name":"公众号","value":"0.0232","ROI":"0.0"},{"name":"商务渠道","value":"0.0251","ROI":"0.9919"},{"name":"内部渠道","value":"0.0087","ROI":"0.0"}]}]}},"pieUnit":{"unitId":"transformationThisMonthConversionEfficiency_pie_1","unitName":"分渠道单量占比","config":{"dimensionList":[{"dimensionId":"first_classify_name","dimensionName":"first_classify_name","dimensionCname":"渠道一级分类"}],"measureList":[{"measureId":"transformationThisMonthConversionEfficiency_number_orders","measureName":"number_orders","isValue":null,"measureCname":"订单量"}],"compositeMeasureList":[],"drilling":1},"chart":{"legend":{"data":["信息流","淘金","公众号","商务渠道","内部渠道"]},"xAxis":[],"yAxis":[],"series":[{"name":null,"type":"pie","data":[{"proportion":"0.2667","name":"信息流","value":"507414"},{"proportion":"0.0969","name":"淘金","value":"184441"},{"proportion":"0.0671","name":"公众号","value":"127742"},{"proportion":"0.4308","name":"商务渠道","value":"819851"},{"proportion":"0.1384","name":"内部渠道","value":"263457"}]}]}},"efficiencyText":null},"transformationThisMonthFlowQuality":{"dashboardName":null,"dashboardId":null,"cardList":[{"unitId":"transformationThisMonthFlowQuality9_card","unitName":"首课到课率","cardValues":[{"name":"首节到课率","value":"0.3885"}]},{"unitId":"transformationThisMonthFlowQuality10_card","unitName":"首课有效到课率","cardValues":[{"name":"首节有效到课率","value":"0.2077"}]},{"unitId":"transformationThisMonthFlowQuality8_card","unitName":"加好友率","cardValues":[{"name":"加好友率","value":"0.5814"}]},{"unitId":"transformationThisMonthFlowQuality11_card","unitName":"转化率","cardValues":[{"name":"流量质量部分的转化率","value":"0.0298"}]}],"lineUnit":{"unitId":"transformationThisMonthFlowQuality_composite_1","unitName":"学员地域分布","config":{"dimensionList":[{"dimensionId":"transformationThisMonthFlowQuality_city_level","dimensionName":"city_level","dimensionCname":"城市等级"}],"measureList":[{"measureId":"transformationThisMonthConversionEfficiency_number_orders","measureName":"number_orders","isValue":null,"measureCname":"订单量"}],"compositeMeasureList":[{"compositeMeasureId":"transformationThisMonthConversionEfficiency_conversion_rate","compositeMeasureName":"conversion_rate","compositeMeasureCname":"转化率"}],"drilling":0},"chart":{"legend":{"data":["订单量","转化率"]},"xAxis":[{"type":"category","data":["五线城市","无","新一线城市","三线城市","一线城市","四线城市","二线城市"]}],"yAxis":[{"type":"value","name":"订单量"},{"type":"value","name":"转化率"}],"series":[{"name":"订单量","type":"bar","data":[{"name":"五线城市","value":"279713"},{"name":"无","value":"32859"},{"name":"新一线城市","value":"246314"},{"name":"三线城市","value":"503689"},{"name":"一线城市","value":"111226"},{"name":"四线城市","value":"463970"},{"name":"二线城市","value":"259138"}]},{"name":"转化率","type":"line","data":[{"name":"五线城市","value":"0.0274"},{"name":"无","value":"0.0279"},{"name":"新一线城市","value":"0.0345"},{"name":"三线城市","value":"0.0283"},{"name":"一线城市","value":"0.0293"},{"name":"四线城市","value":"0.0278"},{"name":"二线城市","value":"0.0352"}]}]}},"pieUnit":{"unitId":"transformationThisMonthFlowQuality_pie_1","unitName":"新老学员分布及转化效率（不含淘金）","config":{"dimensionList":[{"dimensionId":"is_new","dimensionName":"is_new","dimensionCname":"新老用户"}],"measureList":[{"measureId":"transformationThisMonthConversionEfficiency_number_orders","measureName":"number_orders","isValue":null,"measureCname":"订单量"}],"compositeMeasureList":[{"compositeMeasureId":"transformationThisMonthConversionEfficiency_conversion_rate","compositeMeasureName":"conversion_rate","compositeMeasureCname":"转化率"},{"compositeMeasureId":"transformationThisMonthConversionEfficiency_efficiency_ROI","compositeMeasureName":"ROI","compositeMeasureCname":"ROI"}],"drilling":1},"chart":{"legend":{"data":["新用户","老用户"]},"xAxis":[],"yAxis":[],"series":[{"name":null,"type":"pie","data":[{"proportion":"0.9453","name":"新用户","value":"1624441","conversion_rate":"0.0293","ROI":"0.5147"},{"proportion":"0.0547","name":"老用户","value":"94023","conversion_rate":"0.0235","ROI":"0.3817"}]}]}},"efficiencyText":{"unitId":"transformationThisMonthFlowQuality1_text","unitName":"第四部分text","textContent":"注：1. 【新老学员】开课前6个月内是否有开课记录，剔除公开课；2. 【老学员分层】优先级：正价课>低价课；"}}},"msg":"success","pager":null}),
  'POST /api/transformation/select': mock(
    {
      'code': 0,
      'msg': null,
      'data': [
        'aaaa', 'bbbbb', 'cccc'
      ],
      'pager': {
        "pageNum": 1,
        "pageSize": 50,
        "count": 100,
      }
    }
  ),
  'POST /api/transformation/download': mock({
    'code': 0,
    'msg': null,
    'data': null,
    'pager': {
      "pageNum": 1,
      "pageSize": 50,
      "count": 100
    }
  }),
  'POST /api/transformation/detail':
  {"code":0,"data":{"columnList":[{"id":"count(*)","name":"订单量"},{"id":"first_classify_name","name":"渠道一级分类"}],"value":[{"订单量":"273402","渠道一级分类":"信息流"},{"订单量":"76972","渠道一级分类":"淘金"},{"订单量":"38653","渠道一级分类":"公众号"},{"订单量":"333127","渠道一级分类":"商务渠道"},{"订单量":"88407","渠道一级分类":"内部渠道"}]},"msg":"success","pager":null}
};
